/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-08-27 09:40:07
 * @LastEditTime: 2019-08-28 15:40:03
 * @LastEditors: Please set LastEditors
 */
let nexturl = ''
var baseurl = ''

if (process.env.NODE_ENV == "production") {
    if (process.env.VUE_APP_FLAG == 'test') { // .env.test VUE_APP_TITLE设置为test
        baseurl = "http://101.37.246.30:8888/";
        nexturl = "http://101.37.246.30:8081/"
      console.log('环境：测试环境')
    } else {
        baseurl = "https://capi.ructrip.com/";
        nexturl = "https://mapi.ructrip.com/"
      console.log('环境：正式环境')
    }
  } else {
    baseurl = "http://101.37.246.30:8888/";
    nexturl = "http://101.37.246.30:8081/"
    console.log('环境：开发环境')
  }
var API_URL_PROD = {
    imgurl:baseurl,
    officialWeb: "sojo.equity.store.info.to.the.official.web",
    submitResidence: "risk/clue/apply",
    getAuthInfo:"member/manage/qiniu/getAuthInfo",
    getEvalueteList:"sojo.order.evaluation.list.page",
    getEvalueteDetail:"sojo.order.evaluation.get.detail"
}

export function getConfig() {
    return API_URL_PROD;
}
export function getbaseUrl () {
    return baseurl;
}
export function getnexturl () {
    return nexturl;
}
export default {
    getConfig,
    getbaseUrl
}
